<!DOCTYPE html>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="icon" href="IMG/favicon.ico">


  <title>规则配置</title>

  <!-- Bootstrap core CSS -->
  <link href="static/css/dist/css/bootstrap.min.css?v=1" rel="stylesheet">
  <!-- Bootstrap theme -->
  <link href="static/css/dist/css/bootstrap-theme.min.css" rel="stylesheet">
  <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  <link href="static/css/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

  <!-- Custom styles for this template -->
  <link href="static/css/theme.css" rel="stylesheet">

  <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
  <script>

    function checkAddTable(){
      document.addTable.addButton.disabled=false;
      document.getElementById("checkButton").innerHTML="成功";
    }
    function resetAdd(){
      document.addTable.addButton.disabled=true;
      document.getElementById("checkButton").innerHTML="检测";
    }
    function loadDatabaseTable(){
      var tabelName = document.getElementById("");
      tabelName = window.encode
      document.location.href = "/iniRuleTable?databaseName=" + tabelName;
    }

  </script>
  <!--[if lt IE 9]><script src="static/css/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  <script src="static/css/assets/js/ie-emulation-modes-warning.js"></script>

  <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>

  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>



  <![endif]-->
</head>

<body role="document">


<!-- Fixed navbar -->
<jsp:include page="top.jsp" flush="true"/>

<div class="container">

  <div class="panel panel-default">
    <!-- Default panel contents -->
    <div class="panel-heading"><span style="font-family:微软雅黑;">数据源配置</span> </div>
    <div class="panel-body">
      <p><span style="font-family:微软雅黑;">此页面配置你的数据库所用到的表格</span> </p>
    </div>

    <!-- Table -->
    <form action="iniRuleTable" name="deleteTable" method="get">
    <table class="table" style="font-family:微软雅黑;">
      <tr>

        <th colspan="4">TABLE NAME</th>
        <input type="hidden" name="dataId" value="${dataId}">

      </tr>
      <c:forEach items="${tableName}" var="list">
      <tr>

        <td>


            <c:if test="${ list[0]!=null and list[0]!='' }">
              <label class="checkbox-inline">
              <input type="checkbox" name="tableNameList"  value="${list[0]}">${list[0]}
              </label>
            </c:if>&nbsp;


        </td>
        <td>

            <c:if test="${list[1]!=null}">
                <label class="checkbox-inline">
                <input type="checkbox" name="tableNameList"  value="${list[1]}">${list[1]}
                </label>
            </c:if>&nbsp;

        </td>
        <td>

            <c:if test="${list[2]!=null}">
                <label class="checkbox-inline">
                <input type="checkbox" name="tableNameList"  value="${list[2]}">${list[2]}
                </label>
            </c:if>&nbsp;

        </td>
        <td>

            <c:if test="${list[3]!=null}">
                <label class="checkbox-inline">
                <input type="checkbox" name="tableNameList"  value="${list[3]}"> ${list[3]}
                </label>
            </c:if>&nbsp;

        </td>

      </tr>
      </c:forEach>
      <tr>

        <td colspan="4">
          <span class="input-group-btn">
                        <button type="submit" id="checkButton" name="checkButton" onClick="checkAddTable()" class="btn btn-primary" >
                          删除
                        </button>
              <%--<th><a href="iniRuleTable?method=delete" class="btn btn-primary left ">删除</a></th>--%>
              <span>${msg}</span>
          </span>
        </td>

      </tr>
    </table>
    </form>
  </div>

</div> <!-- /container -->


<jsp:include page="bottom.jsp" flush="true"/>


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->

<script src="static/js/jquery.min.js"></script>
<script src="static/css/dist/js/bootstrap.min.js"></script>
<script src="static/css/assets/js/docs.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="static/css/assets/js/ie10-viewport-bug-workaround.js"></script>
<!--
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
-->
</body>
</html>
